package cn.terminus.client.customer.contractselldefyoverdueapplicationinfo.service;

import cn.terminus.client.customer.contractselldefyoverdueapplicationinfo.param.ContractSellDefyOverdueApplicationInfoNewParam;
import cn.terminus.client.customer.contractselldefyoverdueapplicationinfo.param.ContractSellDefyOverdueApplicationInfoEditParam;
import cn.terminus.client.customer.contractselldefyoverdueapplicationinfo.param.ContractSellDefyOverdueApplicationInfoQueryParam;
import cn.terminus.client.customer.contractselldefyoverdueapplicationinfo.param.ContractSellDefyOverdueApplicationInfoDeleteParam;
import cn.terminus.client.customer.contractselldefyoverdueapplicationinfo.param.ContractSellDefyOverdueApplicationInfoGetsParam;
import cn.terminus.client.customer.contractselldefyoverdueapplicationinfo.result.ContractSellDefyOverdueApplicationInfoResult;

import cn.terminus.result.common.result.TerminusResult;
import cn.terminus.result.common.page.TerminusPageAble;
import cn.terminus.result.common.page.TerminusPageInfo;
import cn.terminus.result.common.exception.DataAccessException;
import cn.terminus.result.common.exception.ServiceException;
import cn.terminus.result.common.context.TerminusCallContext;

import java.util.List;

/**
 * 合同出售办证违约(ContractSellDefyOverdueApplicationInfo)表服务接口
 *
 * @author makejava
 * @since 2021-07-21 11:18:34
 */
public interface ContractSellDefyOverdueApplicationInfoService {

    /**
     * 新增
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<String> add(ContractSellDefyOverdueApplicationInfoNewParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 更新
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<Boolean> update(ContractSellDefyOverdueApplicationInfoEditParam param, TerminusCallContext context) throws ServiceException;


    /**
     * gets
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<List<ContractSellDefyOverdueApplicationInfoResult>> gets(ContractSellDefyOverdueApplicationInfoGetsParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 删除
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<Boolean> delete(ContractSellDefyOverdueApplicationInfoDeleteParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 查询
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<List<ContractSellDefyOverdueApplicationInfoResult>> query(ContractSellDefyOverdueApplicationInfoQueryParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 分页查询
     *
     * @param param
     * @param page
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<TerminusPageAble<ContractSellDefyOverdueApplicationInfoResult>> page(ContractSellDefyOverdueApplicationInfoQueryParam param, TerminusPageInfo page, TerminusCallContext context) throws ServiceException;
}
